home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 526-550 / disk_546 / dsound / dsound.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  657b  |  26 lines

  1.  
  2.  
  3. struct IOAudio *GetAudioChannel(ULONG bufferSize);
  4. void FreeAudioChannel(struct IOAudio *aIOB);
  5. void InitAudioChannel(struct IOAudio *aIOB,UWORD volume,UWORD period);
  6. struct IOAudio *DuplicateAudioChannel(struct IOAudio *OrigIOB);
  7. void DeleteDuplication(struct IOAudio *aIOB);
  8. ULONG LoadAudioBuffer(BPTR file,struct IOAudio *aIOB,ULONG toRead);
  9. void Position(BPTR file,char *string);
  10. void WriteMsg(char *errMsg);
  11. void cleanup(int err);
  12.  
  13.  
  14. typedef struct Voice8Header
  15. {
  16.    ULONG oneShotHiSamples,
  17.      repeatHiSamples,
  18.      samplesPerHiCycle;
  19.    UWORD samplesPerSec;
  20.    UBYTE ctOctave,sCompression;
  21.    LONG volume;
  22. };
  23.  
  24. #define MIN(x,y) ( (x) < (y) ) ? (x) : (y)
  25.  
  26.